package cn.edu.sdu.sol.material_management_system.utils;


import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {

    public static String getTime(){
        Date date=new Date();
        SimpleDateFormat dateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String nowTime=dateFormat.format(date);
        return nowTime;
    }
}

